package org.bmp.zemail.server.folder.models;

import java.io.Serializable;
import java.util.List;

import org.bmp.zemail.server.mail.models.Mail;

public class Folder implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String id;
	private String name;
	private List<Folder> folders;
	private List<Mail> mails;
	private int page = 0;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Folder> getFolders() {
		return folders;
	}
	public void setFolders(List<Folder> folders) {
		this.folders = folders;
	}
	public List<Mail> getMails() {
		return mails;
	}
	public void setMails(List<Mail> mails) {
		this.mails = mails;
	}
	public void incrementPage() {
		page ++;
	}
	public void decrementPage() {
		page --;
	}
	public int getPage() {
		return page;
	}
	public void resetPage() {
		page = 0;
	}
}
